package com.restaurant.application.indexes.reservationlist.support;

import com.nebutown.base.ViewSpec;
import com.nebutown.base.data.View;
import com.nebutown.generation.basictype.UID;
import com.nebutown.supporthome.AbstractBase;
import com.restaurant.application.indexes.reservationlist.AssistReservationList;
import com.restaurant.application.indexes.reservationlist.mysql.ReservationListBean;
import com.restaurant.application.reservation.support.ReservationData;

import java.util.List;

public class AssistReservationListOutFace implements AssistReservationList {
    private AssistReservationListBase base;

    public AssistReservationListOutFace(AssistReservationListBase base) {
        this.base = base;
    }

    public AbstractBase getBase() {
        return this.base;
    }

    @Override
    public List getReservationBean(UID arg0) {
        return (List) base.call("getReservationBean", arg0);
    }

    @Override
    public ReservationListBean updateBean(UID arg0, ReservationData arg1, ReservationListBean arg2) {
        return (ReservationListBean) base.call("updateBean", arg0, arg1, arg2);
    }

    @Override
    public ReservationListBean createBean(UID arg0, ReservationData arg1) {
        return (ReservationListBean) base.call("createBean", arg0, arg1);
    }

    @Override
    public UID getId() {
        return (UID)base.call("getId");
    }

    @Override
    public Class getEffectiveInterface() {
        return (Class) base.call("getEffectiveInterface");
    }

    @Override
    public View getViewLead(ViewSpec arg0) {
        return (View) base.call("getViewLead", arg0);
    }

    @Override
    public View getFullView() {
        return (View) base.call("getFullView");
    }
}
